package com.example.JcGQS.pojo.dto;

import com.fasterxml.jackson.annotation.JsonSetter;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

@Data
public class PutInStorageDTO {
    public PutInStorageDTO(Integer inputGoodsId, Integer inputQuantity, Integer inputLocationId, String inputRemark, Integer userId) {
        this.inputGoodsId = inputGoodsId;
        this.inputQuantity = inputQuantity;
        this.inputLocationId = inputLocationId;
        this.inputRemark = inputRemark;
        this.userId = userId;
    }

    /**
     * 入库的物料的id
     */
    @JsonSetter("inputGoodsId")
    private Integer inputGoodsId;

    /**
     * 入库的数量
     */
    @JsonSetter("inputQuantity")
    private Integer inputQuantity;
    /**
     * 入库位置
     */
    @JsonSetter("inputLocationId")
    private Integer inputLocationId;
    /**
     * 入库的备注
     */
    @JsonSetter("inputRemark")
    private String inputRemark;

    @JsonSetter("userId")
    private Integer userId;
}
